package org.ovirt.microvirt.beans.plan;

import javax.persistence.Column;
import javax.persistence.DiscriminatorValue;
import javax.persistence.Entity;

@Entity
@DiscriminatorValue("pool")
public class VirtualMachinePoolRequirement extends Requirement {
	@Column(name="minr", nullable=true)
	Integer minRunning;
	@Column(name="maxr")
	Integer maxRunning;
	@Column(name="spread")
	boolean spreadout = false;
	public Integer getMinRunning() {
		return minRunning;
	}
	public void setMinRunning(Integer minRunning) {
		this.minRunning = minRunning;
	}
	public Integer getMaxRunning() {
		return maxRunning;
	}
	public void setMaxRunning(Integer maxRunning) {
		this.maxRunning = maxRunning;
	}
	public boolean isSpreadout() {
		return spreadout;
	}
	public void setSpreadout(boolean spreadout) {
		this.spreadout = spreadout;
	}
}
